import {components,directives} from 'list.js';
import {dialog,alert,confirm,loading,toast} from 'plug.js';
import {assign,esc,enter} from 'global.js';
export default {
    install(app,object) {

        for(let name in components){
             app.component(name,components[name]);
        } 
        
        for(let name in directives) {
             app.directive(name,directives[name]);
        } 
        app.config.globalProperties.$dialog = dialog;
        app.config.globalProperties.$alert = alert;
        app.config.globalProperties.$confirm = confirm;
        app.config.globalProperties.$loading = loading;
        app.config.globalProperties.$toast = toast;
        app.config.globalProperties.$assign = assign;
        app.config.globalProperties.$keyboard = {
            esc:esc,enter:enter
        }
    }
}